package com.github.binarywang.demo.wx.mp.service;

import com.github.binarywang.demo.wx.mp.beans.WxMultiConfigDto;
import com.github.binarywang.demo.wx.mp.mapper.wxmapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class wxserviceImpl implements wxservice {
    @Autowired
    wxmapper wp;

    @Override
    public List<WxMultiConfigDto> selectAll() {
        return wp.selectAll();
    }

    @Override
    public int countGZHNum() {
        return wp.countGZHNum();
    }

    @Override
    public void addGZ(WxMultiConfigDto wxMultiConfigDto) {
        wp.addGZ(wxMultiConfigDto);
    }

    @Override
    public List<WxMultiConfigDto> getGZHbyId(String hao_zhu_id) {
        return wp.getGZHbyId(hao_zhu_id);
    }

    @Override
    public WxMultiConfigDto getGZHbyappid(String appid) {
        return wp.getGZHbyappid(appid);
    }

    @Override
    public WxMultiConfigDto getsingleGZHbyId(String client_id) {
        return wp.getsingleGZHbyId(client_id);
    }

    @Override
    public void delGZHbyclient_id(String client_id) {
        wp.delGZHbyclient_id(client_id);
    }

    @Override
    public void updateGZHbyclientid(String client_id,String appid, String appsecret, String token,String url) {
        wp.updateGZHbyclientid(client_id,appid, appsecret,token,url);
    }

    @Override
    public String getAppIdbyclientId(String client_id) {
        return wp.getAppIdbyclientId(client_id);
    }

    @Override
    public void statusCTO(String client_id,String status) {
        wp.statusCTO(client_id,status);
    }

}
